<!DOCTYPE html>
<html>
<head>
<title>用户列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<!--删除默认的苹果工具栏和菜单栏。-->
<link rel="stylesheet" href="plug-in/ydui/css/ydui.css?rev=@@hash" />
<link rel="stylesheet" href="plug-in/ydui/css/demo.css" />
<script src="plug-in/ydui/js/ydui.flexible.js"></script>
<style type="text/css">
.demo-pagetitle {
	position: relative;
	top: 10%;
}

.m-button {
	position: relative;
	top: 20%;
	background: transparent;
}

.m-grids-4 .grids-item {
	width: 50%;
}

.demo-icons [class^="icon-"]:before, .demo-icons [class*=" icon-"]:before
	{
	font-size: 0.6rem;
	color: #FF685D;
}
</style>
<link rel="stylesheet" href="webpage/css/login-main.css" />
<script type="text/javascript" src="webpage/jQuery/jquery-1.9.1.js"></script>
<script type="text/javascript">
	
</script>
</head>
<body>
	<!-- <div class="div"></div> -->
	<header class="m-navbar">
        	<a class="navbar-item" onclick="window.history.go(-1)"><i class="back-ico"></i></a>
        	<div class="navbar-center"><span class="navbar-title">用户信息</span></div>
    </header>
	<section class="g-flexview">
		<section class="g-scrollview">
	        <div class="m-celltitle demo-small-pitch">用户列表</div>
	        <div id = "table" class="m-cell"></div>
		</section>
	</section>
</body>
<script type="text/javascript">
	$(function(){
		var value = "";
		$.ajax({
			type: 'post', // 提交方式 get/post
	   		url: "systemController.do?userDatagrid", // 需要提交的 url
	  		//data:{'id':id,'dicMelCode':dicMelCode,'dicMelName':dicMelName,'dicMelStatus':dicMelStatus},
	   		dataType:"json",
	       	success: function(json){
	       		var entity = json.obj;
	       		$.each(entity, function(i,item){
	       			var htmlleft1 = "<a onclick=js_update('"
	       			var htmlleft2 = "') class='cell-item'> " + 
	                				"<div class='cell-left'>"
	       			var htmlright = "</div> " + 
	                				"<div class='cell-right cell-arrow' id='"+item.id+"'></div> " + 
	            					"</a>";
	       	        $("#table").append(htmlleft1+item.id+htmlleft2+item.userKey+htmlright);
	       	    });
	       	},
	       	error: function(){
	       		
	       	}
		})
	})
	function js_update(ids) {		
		window.location.href = "systemController.do?toUpdateUser&id="+ids;
	}
	
</script>
</html>